package com.qst.crop.demo.mapper;

import com.qst.crop.demo.entity.Answer;
import com.qst.crop.demo.entity.Question;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Date;
import java.util.List;

@Mapper
public interface AnsMapper {

    int add(String responder, String answerText, long questionId, Date createdDate);

    int deleteById(long answerId);

    Answer getAnsById(long answerId);

    List<Answer> select(String searchWord);

    List<Answer> getAnsList(long questionId);
}
